package com.eaoa.uc.busvehicle.form;

import com.eaoa.base.EABaseForm;
import com.eaoa.vo.bus.BusVehicle;
import com.stony.core.util.CoreUtils;

public class BusVehicleForm extends EABaseForm{

	// primary key
	private String vehicleno;
	// fields
	private String vehiclecode;
	private String driver;
	private String phone;
	private String size;
	private String loadweight;
	private String quote;
	private String remarks;
	private String buyyear;
	
	public void setVO(BusVehicle vo){
		this.setVehicleno(CoreUtils.formatString(vo.getVehicleno()));
		this.setVehiclecode(vo.getVehiclecode());
		this.setDriver(vo.getDriver());
		this.setPhone(vo.getPhone());
		this.setSize(vo.getSize());
		this.setLoadweight(vo.getLoadweight());
		this.setQuote(vo.getQuote());
		this.setRemarks(vo.getRemarks());
		this.setBuyyear(vo.getBuyyear());
	}
	
	public BusVehicle getVO(){
		BusVehicle po = new BusVehicle();
		po.setVehicleno(CoreUtils.parseLong(this.getVehicleno()));
		po.setVehiclecode(this.getVehiclecode());
		po.setDriver(this.getDriver());
		po.setPhone(this.getPhone());
		po.setSize(this.getSize());
		po.setLoadweight(this.getLoadweight());
		po.setQuote(this.getQuote());
		po.setRemarks(this.getRemarks());
		po.setBuyyear(this.getBuyyear());
		return po;
	}
	
	public String getVehicleno() {
		return vehicleno;
	}
	public void setVehicleno(String vehicleno) {
		this.vehicleno = vehicleno;
	}
	public String getVehiclecode() {
		return vehiclecode;
	}
	public void setVehiclecode(String vehiclecode) {
		this.vehiclecode = vehiclecode;
	}
	public String getDriver() {
		return driver;
	}
	public void setDriver(String driver) {
		this.driver = driver;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getSize() {
		return size;
	}
	public void setSize(String size) {
		this.size = size;
	}
	public String getLoadweight() {
		return loadweight;
	}
	public void setLoadweight(String loadweight) {
		this.loadweight = loadweight;
	}
	public String getQuote() {
		return quote;
	}
	public void setQuote(String quote) {
		this.quote = quote;
	}
	public String getRemarks() {
		return remarks;
	}
	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}
	public String getBuyyear() {
		return buyyear;
	}
	public void setBuyyear(String buyyear) {
		this.buyyear = buyyear;
	}
	
}
